package com.dd.shop4j.common.utils.interceptor.form;

import java.io.Serializable;
import java.util.UUID;

/**
 * 表单提交令牌
 * @author tangshu
 *
 */
public class FormToken implements Serializable {

	private static final long serialVersionUID = -8724074956911797279L;

	/*
	 * 表单token name
	 */
	public static final String FORM_UNIQ_FIELD_NAME = "_form_uniq_token";
	
	private String token;		//令牌
	private long createTime;	//令牌创建时间
	
	public FormToken() {
		this.token = UUID.randomUUID().toString();
		this.createTime = System.currentTimeMillis();
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	
}
